<div class="row box" id="toolbar">
    <?php if($button): ?> <div class="col-md-9 col-sm-8 col-xs-7"><?= $button; ?></div><?php endif; ?>
    <?php if($search): ?>
    <div class="col-md-3 col-sm-4 col-xs-5 pull-right">
        <div class="search has-feedback">
            <form action="<?= \yii\helpers\Url::to(['/' . Yii::$app->controller->id]); ?>" method="get">
                <input placeholder="<?= $placeholder; ?>" value="" class="form-control" name="wd">
                <span class="glyphicon glyphicon-search form-control-feedback" aria-hidden="true"></span>
            </form>
        </div>
    </div>
    <?php endif; ?>
</div>